x86/pagewalk: Improve print_gw()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 24 May 2016 10:56:58 +0000 (11:56 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 5 Dec 2016 14:29:00 +0000 (14:29 +0000)
commitfb06017f807d45f43b86be33311694c6665ac182
tree7ff2618a550ebe823f9fd8cdb0d237c68ba65411
parentceafbe464f905ae33471ac062f3467ca828f0b5b
x86/pagewalk: Improve print_gw()

print_gw() has no callers, meaning that it only gets used as part of manual
debugging.  As such, the FILE/LINE references are of no practical use, and
voluminous in the log.  Additionally, the function becoming empty in a
non-debug build is unhelpful.  Switch from gdprintk() to gprintk().

Print the entry and mfn for a specific level on the same line.  This halves
the number of lines printed overall.  There needs to be a small adjustment to
the #ifdef'ary to maintain the proper l3e behaviour for 3-level paging, where
there is no l3mfn to print.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/include/asm-x86/guest_pt.h